14. SIM related Commands > 14.5 AT^SCKS   Query SIM and Chip Card Holder Status

14.5
AT^SCKS   Query SIM and Chip Card Holder Status
This command controls the SIM connection presentation mode and queries the connection status of the SIM and the card holder tray of the TC65.
The query can be used for the locally attached and remote SIM's as well. For details regarding Remote SIM Access refer to AT^SRSA.
Syntax
Test Command  
Response(s)
^SCKS:(list of supported <mode>s)
Read Command  
Response(s)
Write Command  
Response(s)
Reference(s) 
PIN 
ASC0 
ASC1 
USB 
MUX1 
MUX2 
MUX3 
Charge 
Last 

Unsolicited Result Code
^SCKS: <SimStatus>
During startup, and if the TC65's SIM connection status has changed an unsolicited result code (URC) is issued.

Command Description
The read command returns the URC presentation mode and the status of the SIM card connection.
The write command enables or disables the presentation of URCs to report whether or not the SIM card is con­nected.
If the ME is powered down or reset (AT+CFUN or AT^SMSO) the current presentation mode setting <mode> will not be retained. Therefore the setting <mode>=1 needs to be restored after power on the TC65 or may be saved in the user profile (AT&W).

Parameter Description
 
<mode>(num)(&W)(&V)
0(&F)
Suppress unsolicited result codes
1
Output unsolicited result codes
 
<SimStatus>(num)(&V)
0
Card holder tray removed or SIM connection error
1
SIM inserted(refer to note)
2
The SIM interface HW has been deactivated to prevent possible damage (e.g. if a SIM with invalid or unsupported electrical specifications has been detected).
The SIM interface can be reactivated only with a restart of the module, e.g. with "AT+CFUN= n,1".
If the Remote SIM Access feature is activated (refer to AT^SRSA) and a SIM card error occurs while accessing the remote SIM, the TC65 switches to its local SIM, if any. If the SIM card error occurs while local SIM access, use of the remote SIM is still possible.


Note
•
<SimStatus> reflects the status of the SIM and the card holder tray. Therefore if an empty SIM card tray is inserted, two URCs will be presented, indicating the status 1 followed by 0, i.e. a SIM is inserted into the card holder tray but no SIM connection could be established.

Example
 
Now, after inserting an empty card tray the following URCs appear: